<?php
$session=new CHttpSession();
$session->open();
$i=$session['i'];
if($i==1){
echo '<style type="text/css">
.list-view .items  {
    display: inline;
}
.list-view .items li {
    border-bottom: 0;
    overflow: visible;
    width: 160px;
    margin: 0;
    padding: 0;
}
.memberList li.f{
margin: 0;
}
.memberList li span{
padding: 0;
}
</style>';

}

$li_class='';
if($i%4==1)
    $li_class=' class="f"';
elseif($i%4==0)
    $li_class=' class="s"';

if(!empty($data)) {
    echo '<li'.$li_class.'>'.
        '<span style="float:left;width:66px;padding-left:10px;">spcf'.$data->username.'</span>'.
        '<a style="float:left;padding-left:10px;" href="'.Yii::app()->createUrl('users/index', array('type'=>1, 'id'=>$data->id)).'">'.$data->p->nickname.'</a>'.

        '</li>';
}

$session['i']=$i+1;
